
package com.be.beadmin.design.repository;

import com.be.beadmin.design.entity.ProductBom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zmy
* @date 2023-03-22
**/
public interface ProductBomRepository extends JpaRepository<ProductBom, String>, JpaSpecificationExecutor<ProductBom> {

    ProductBom findProductBomByIdAndDelete(String id, Integer delete);

    ProductBom findProductBomById(String id);

    ProductBom findProductBomByProductCode(String productCode);

    List<ProductBom> findProductBomByProductCodeAndDelete(String productCode, int delete);


}